package com.lin.cms.domain;

import java.io.Serializable;

public class AcquisitionHistory implements Serializable {

	private static final long serialVersionUID = 1L;

	private int historyId;

	private String channelUrl;

	private String contentUrl;

	private String title;

	private String description;

	private int acquisitionId;

	private int contentId;

	public AcquisitionHistory() {
	}

	public int getHistoryId() {
		return historyId;
	}

	public void setHistoryId(int historyId) {
		this.historyId = historyId;
	}

	public String getChannelUrl() {
		return channelUrl;
	}

	public void setChannelUrl(String channelUrl) {
		this.channelUrl = channelUrl;
	}

	public String getContentUrl() {
		return contentUrl;
	}

	public void setContentUrl(String contentUrl) {
		this.contentUrl = contentUrl;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getAcquisitionId() {
		return acquisitionId;
	}

	public void setAcquisitionId(int acquisitionId) {
		this.acquisitionId = acquisitionId;
	}

	public int getContentId() {
		return contentId;
	}

	public void setContentId(int contentId) {
		this.contentId = contentId;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + historyId;

		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final AcquisitionHistory other = (AcquisitionHistory) obj;
		if (historyId != other.historyId)
			return false;

		return true;
	}
	
	@Override
	public String toString() {
		return getClass().getName() + "@" + Integer.toHexString(hashCode()) + 
			"(" + 
			"historyId=" + "'" + historyId + "'" + 
			")";
	}
	
}
